package com.fawkes.ios;

import lombok.extern.slf4j.Slf4j;

/**
 * @author xuetieqi
 * @date 2023/4/15 7:06 PM
 **/
@Slf4j
public class Test2<T> {
    public void funtion(Test<T> test,T t){
        test.test1(t);
    }

    public static void main(String[] args) {
        Test2<String> test2 = new Test2<String>();
        test2.funtion(new Test<String>() {
            @Override
            public void test1(String s) {
                log.info(s);
            }
        },"i do");


    }
}
